﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace tf2hudmaker
{
    class Data_huddamageaccount : Data
    {
        public Data_huddamageaccount()
        {
            this.RessourceFileName = "huddamageaccount.res";
            this.RessourceFilePath = "resource\\ui\\";
            this.FieldList = new List<FieldInfo>();

            this.HealColor = new FieldInfo_Color("dmg_colorheal");
            this.FieldList.Add(this.HealColor);

            this.DmgColor = new FieldInfo_Color("dmg_colordamage");
            this.FieldList.Add(this.DmgColor);

            this.StayColor = new FieldInfo_Color("dmg_colorstay");
            this.FieldList.Add(this.StayColor);

            this.DamageTime = new FieldInfo_Float("dmg_time");
            this.FieldList.Add(this.DamageTime);

            this.StayTime = new FieldInfo_Float("dmg_staytime");
            this.FieldList.Add(this.StayTime);

            this.X = new FieldInfo_Int("dmg_x");
            this.FieldList.Add(this.X);

            this.Y = new FieldInfo_Int("dmg_y");
            this.FieldList.Add(this.Y);

          
        }
        
        FieldInfo_Color HealColor;
        FieldInfo_Color DmgColor;
        FieldInfo_Color StayColor;
        FieldInfo_Float DamageTime;
        FieldInfo_Float StayTime;
        FieldInfo_Int X;
        FieldInfo_Int Y;

        public override void SetDefaultValues()
        {
            base.SetDefaultValues();


            this.HealColor = new FieldInfo_Color("dmg_colorheal", 0, 255, 0, 255);
            this.FieldList.Add(this.HealColor);

            this.DmgColor = new FieldInfo_Color("dmg_colordamage", 255, 0, 0, 255);
            this.FieldList.Add(this.DmgColor);

            this.StayColor = new FieldInfo_Color("dmg_colorstay", 255, 0, 0, 255);
            this.FieldList.Add(this.StayColor);

            this.DamageTime = new FieldInfo_Float("dmg_time", 1.5f);
            this.FieldList.Add(this.DamageTime);

            this.StayTime = new FieldInfo_Float("dmg_staytime", 10f);
            this.FieldList.Add(this.StayTime);

            this.X = new FieldInfo_Int("dmg_x", 400);
            this.FieldList.Add(this.X);

            this.Y = new FieldInfo_Int("dmg_y", 400);
            this.FieldList.Add(this.Y);
        }
    }
}